app_family.controller("controller_healthadvice", function($scope, $rootScope, httpRequest) {
	$rootScope.$broadcast('currentModule', 'controller_healthadvice');
	$rootScope.$broadcast('footerFlag', false); // 是否显示底部导航
	data_sessionStorage = JSON.parse(sessionStorage.getItem('data_sessionStorage'));
	$scope.imagebasepath = imagebasepath;
	/**
	 * 判断是否用手机登录过
	 */
	if (data_sessionStorage) {
		var familyPhone = data_sessionStorage.familyInfo.phone;
		if (familyPhone == '' || familyPhone == null) {
			window.location.replace(basepath + 'login.html');
			return;
		}
	} else {
		window.location.replace(basepath + 'login.html');
		return;
	}
	
	/**
	 * 根据评估编号，查询评估建议
	 */
	httpRequest.getAssessSuggestion({
		assessment_record_id : data_sessionStorage.assInfo.ass_advice_record_id
	}, function (data) {
		if (data.success === true) {
			$scope.adviceObj = data.obj;
		} else if (data.success === false) {
			$.dialog.showToast({msgTxt : data.msg});
		}
	});
});